//
//  CustomADInputView.m
//  CYWFrame
//
//  Created by 于顺燊 on 2018/10/11.
//  Copyright © 2018年 Macx. All rights reserved.
//

#import "CustomADInputView.h"
#define TopWindow [UIApplication sharedApplication].keyWindow

@implementation CustomADInputView

- (instancetype)initWithFrame:(CGRect)frame
{
	self = [super initWithFrame:frame];
	if (self) {
		
		NSArray *nibView = [[NSBundle mainBundle] loadNibNamed:@"CustomADInputView" owner:self options:nil];
		UIView *content = [nibView objectAtIndex:0];
		[self addSubview:content];
	}
	return self;
}
- (IBAction)cancelBtnClick:(id)sender {
	[self removeFromSuperview];
}
- (void)show
{
	[TopWindow addSubview:self];
	[self.titleText becomeFirstResponder];
}

/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

@end
